/*
 * Copyright ®2018 juneyaoair Group.
 *
 *
 *
 */
 
package com.juneyaoair.horder.dto.lounge;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.util.List;
import com.juneyaoair.horder.dto.BaseResultDTO;

/**
 * 休息室购买结果
 *
 * @author jx-air
 * @date 2018-6-19 20:07:56
 */
@Data
@ToString
@EqualsAndHashCode(callSuper=false)   
public class LoungeBuyResponseDto extends BaseResultDTO {

    /** 常旅客ID  */
    @ApiModelProperty(value="常旅客ID")
    @JsonProperty(value="FfpId")
    private String ffpId;
    /** 常旅客卡号  */
    @ApiModelProperty(value="常旅客卡号")
    @JsonProperty(value="FfpCardNo")
    private String ffpCardNo;
    /** 渠道订单编号 同一渠道不能有相同的渠道订单编号 */
    @ApiModelProperty(value="渠道订单编号")
    @JsonProperty(value="ChannelOrderNo")
    private String channelOrderNo;
    /** 订单编号  */
    @ApiModelProperty(value="订单编号")
    @JsonProperty(value="OrderNo")
    private String orderNo;
    /** 订单总金额  */
    @ApiModelProperty(value="订单总金额")
    @JsonProperty(value="PayAmount")
    private Double payAmount;
    /** 休息室List  */
    @ApiModelProperty(value="休息室List")
    @JsonProperty(value="LoungeList")
    private List<LoungeQueryDto> loungeList;
    
    /**
     * 默认构造方法
     */
    public LoungeBuyResponseDto() {
    	super();
    }
    
    /**
     * 根据请求参数新建返回结果
     *
     * @param request 请求参数
     */
    public LoungeBuyResponseDto(LoungeBuyRequestDto request) {
    	super(request);
    	this.ffpId = request.getFfpId();
    	this.ffpCardNo = request.getFfpCardNo();
    	this.channelOrderNo = request.getChannelOrderNo();
    	this.payAmount = request.getPayAmount();
    }
}